package com.ershi.spring.annotation.values;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 二十
 * @since 2021/10/14 8:47 上午
 */

@Component
public class Girl {
	@Value("${girl.name}")
	private String name;
	@Value("${girl.face}")
	private String face;
	@Value("${girl.age}")
	private Integer age;
	@Value("${girl.body}")
	private String body;
	@Value("${girl.leg}")
	private String leg;


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFace() {
		return face;
	}

	public void setFace(String face) {
		this.face = face;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getLeg() {
		return leg;
	}

	public void setLeg(String leg) {
		this.leg = leg;
	}

	@Override
	public String toString() {
		return "Girl{" +
				"name='" + name + '\'' +
				", face='" + face + '\'' +
				", age=" + age +
				", body='" + body + '\'' +
				", leg='" + leg + '\'' +
				'}';
	}
}
